import java.util.ArrayList;

public class Dealer extends Play {
	
	protected int value;
	protected ArrayList<Carte> hand = new ArrayList<Carte>();
	protected Deck sabot;
	
	public Dealer (int value, ArrayList<Carte> hand){
		this.value=value;
		this.hand=hand;
	}
	
	
	public void play(){
		value=calculateValue(hand);
		if (containsRank(1,hand)==false){
			while (value<17){
				takeCard(hand);
				value=calculateValue(hand);
			}
		}
			else{
				while (value<18){
					takeCard(hand);
					value=calculateValue(hand);
				}	
	}

	}
}
